home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Delphi Magazine Collection 2001
/
Delphi Magazine Collection 20001 (2001).iso
/
DISKS
/
ISSUE05
/
SERVER
/
LISTING3.PAS
< prev
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Windows-1252 (detected)
Wrap
Pascal/Delphi Source File
|
1995-12-07
|
363 b
|
19 lines
Query1.SQL.Clear
Query1.SQL.Add(æSelect * from ATable where cust_no = :customer_noÆ);
Query1.Prepare;
try
for I := 1 to 1000 do
begin
Query1.ParamByName(æcustomer_noÆ).AsInteger := I;
Query1.Open;
try
{ do stuff with the returned record }
finally
Query1.Close;
end;
end;
finally
Query1.Unprepare;
end;